home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / program / gmp202.zip / Makefile < prev    next >
Makefile  |  1997-04-19  |  7KB  |  225 lines

  1. # This file was generated automatically by configure.  Do not edit.
  2. VPATH = .
  3. links = 
  4. host_alias = i386-EMX-OS/2
  5. host_cpu = i386
  6. host_vendor = EMX
  7. host_os = OS/2
  8. host_canonical = i386-EMX-OS/2
  9. target_alias = i386-EMX-OS/2
  10. target_cpu = i386
  11. target_vendor = EMX
  12. target_os = OS/2
  13. target_canonical = i386-EMX-OS/2
  14. build_alias = i386-EMX-OS/2
  15. build_cpu = i386
  16. build_vendor = EMX
  17. build_os = OS/2
  18. build_canonical = i386-EMX-OS/2
  19. # Top Makefile for GNU MP
  20. # Copyright (C) 1991, 1993, 1994, 1996 Free Software Foundation, Inc.
  21.  
  22. # This file is part of the GNU MP Library.
  23.  
  24. # The GNU MP Library is free software; you can redistribute it and/or modify
  25. # it under the terms of the GNU Library General Public License as published by
  26. # the Free Software Foundation; either version 2 of the License, or (at your
  27. # option) any later version.
  28.  
  29. # The GNU MP Library is distributed in the hope that it will be useful, but
  30. # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  31. # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
  32. # License for more details.
  33.  
  34. # You should have received a copy of the GNU Library General Public License
  35. # along with the GNU MP Library; see the file COPYING.LIB.  If not, write to
  36. # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
  37. # MA 02111-1307, USA.
  38.  
  39. srcdir = .
  40.  
  41. prefix = /usr/local
  42.  
  43. exec_prefix = $(prefix)
  44. libdir = $(exec_prefix)/lib
  45. infodir = $(prefix)/info
  46. includedir = $(prefix)/include
  47.  
  48. CC = gcc
  49. LOCAL_CC = $(CC)
  50. CFLAGS = -O4
  51. XCFLAGS = 
  52. AR = ar
  53. AR_FLAGS = rc
  54. RANLIB_TEST = [ -f /usr/bin/ranlib -o -f /bin/ranlib ]
  55. RANLIB = ar s
  56. SHELL = /bin/sh
  57. INSTALL = $(srcdir)/install.sh -c
  58. INSTALL_PROGRAM = $(INSTALL)
  59. INSTALL_DATA = $(INSTALL)
  60. MAKEINFO = makeinfo
  61. MAKEINFOFLAGS =
  62. TEXI2DVI = texi2dvi
  63. LN = ln -s
  64.  
  65. #### host and target specific makefile fragments come in here.
  66. ###
  67.  
  68. SRCS = memory.c mp_set_fns.c mp_clz_tab.c version.c stack-alloc.c mp_bpl.c \
  69.   extract-double.c insert-double.c
  70. OBJS = memory.o mp_set_fns.o mp_clz_tab.o version.o stack-alloc.o mp_bpl.o \
  71.   extract-double.o insert-double.o
  72. FILES = gmp.h mp.h gmp-impl.h longlong.h urandom.h \
  73.  INSTALL COPYING.LIB ChangeLog \
  74.  NEWS README SPEED TODO \
  75.  gmp.info* gmp.texi texinfo.tex $(SRCS)
  76.  
  77. INCLUDES = -I. -Impn -I$(srcdir)
  78. FLAGS_TO_PASS = "CC=$(CC)" "CFLAGS=$(CFLAGS)" "XCFLAGS=$(XCFLAGS)"
  79.  
  80. all: libgmp.a
  81.  
  82. .c.o:
  83.     $(CC) -c $(INCLUDES) $(CFLAGS) $(XCFLAGS) $<
  84.  
  85. libgmp.a: mpn/libmpn.a mpz/libmpz.a mpf/libmpf.a mpq/libmpq.a $(OBJS)
  86.     rm -rf tmpdir
  87.     mkdir tmpdir
  88.     for i in mpn mpz mpf mpq; \
  89.       do \
  90.         mkdir tmpdir/$$i; \
  91.         ( cd tmpdir/$$i; $(AR) x ../../$$i/lib$$i.a ); \
  92.       done
  93.     cp $(OBJS) tmpdir
  94.     cd tmpdir; $(AR) $(AR_FLAGS) $@ *.o */*.o
  95.     if $(RANLIB_TEST) ; then $(RANLIB) tmpdir/$@; else true; fi
  96.     mv tmpdir/$@ .
  97.     rm -rf tmpdir
  98.  
  99. libmp.a: mpn/libmpn.a mpbsd/libmpbsd.a $(OBJS)
  100.     rm -rf tmpdir
  101.     mkdir tmpdir
  102.     for i in mpn mpbsd; \
  103.       do \
  104.         mkdir tmpdir/$$i; \
  105.         ( cd tmpdir/$$i; $(AR) x ../../$$i/lib$$i.a ); \
  106.       done
  107.     cp $(OBJS) tmpdir
  108.     cd tmpdir; $(AR) $(AR_FLAGS) $@ *.o */*.o
  109.     if $(RANLIB_TEST) ; then $(RANLIB) tmpdir/$@; else true; fi
  110.     mv tmpdir/$@ .
  111.     rm -rf tmpdir
  112.  
  113. mpn/libmpn.a: force
  114.     cd mpn; $(MAKE) $(FLAGS_TO_PASS) libmpn.a
  115. mpz/libmpz.a: force
  116.     cd mpz; $(MAKE) $(FLAGS_TO_PASS) libmpz.a
  117. mpf/libmpf.a: force
  118.     cd mpf; $(MAKE) $(FLAGS_TO_PASS) libmpf.a
  119. mpq/libmpq.a: force
  120.     cd mpq; $(MAKE) $(FLAGS_TO_PASS) libmpq.a
  121. mpbsd/libmpbsd.a: force
  122.     cd mpbsd; $(MAKE) $(FLAGS_TO_PASS) libmpbsd.a
  123.  
  124. check: libgmp.a
  125.     cd mpz/tests; $(MAKE) $(FLAGS_TO_PASS) check
  126.     cd mpq/tests; $(MAKE) $(FLAGS_TO_PASS) check
  127.     cd mpf/tests; $(MAKE) $(FLAGS_TO_PASS) check
  128.  
  129. doc: gmp.dvi gmp.info
  130.  
  131. info: $(srcdir)/gmp.info
  132. $(srcdir)/gmp.info: $(srcdir)/gmp.texi
  133.     cd $(srcdir); $(MAKEINFO) gmp.texi
  134.  
  135. dvi: gmp.dvi
  136. gmp.dvi: $(srcdir)/gmp.texi
  137.     rm -f tmp.texi
  138.     $(LN) $(srcdir)/gmp.texi tmp.texi
  139.     TEXINPUTS=.:$(srcdir) $(TEXI2DVI) tmp.texi
  140.     rm -f tmp.texi
  141.     mv tmp.dvi gmp.dvi
  142.     rm -f tmp.*
  143.  
  144. ps: gmp.ps
  145. gmp.ps: gmp.dvi
  146.     dvips gmp.dvi -o gmp.ps
  147.  
  148. html: gmp_toc.html
  149. gmp_toc.html: $(srcdir)/gmp.texi
  150.     texi2html -acc -split_chapter $(srcdir)/gmp.texi
  151.  
  152. # The semicolon is to prevent the install.sh -> install default rule
  153. # from doing anything.  Having it run true helps avoid problems and
  154. # noise from versions of make which don't like to have null commands.
  155. install: install-normal ; @true
  156.  
  157. install-strip: install-normal
  158. install-normal: installdirs libgmp.a gmp.info install-info-files
  159.     $(INSTALL_DATA) libgmp.a $(libdir)/libgmp.a
  160.     -chmod a-x $(libdir)/libgmp.a
  161.     $(INSTALL_DATA) $(srcdir)/gmp.h $(includedir)/gmp.h
  162.     -chmod a-x $(includedir)/gmp.h
  163. install-bsdmp: installdirs libmp.a gmp.info install-info-files
  164.     $(INSTALL_DATA) libmp.a $(libdir)/libmp.a
  165.     -chmod a-x $(libdir)/libmp.a
  166.     $(INSTALL_DATA) $(srcdir)/mp.h $(includedir)/mp.h
  167.     -chmod a-x $(includedir)/mp.h
  168. install-info-files: installdirs $(srcdir)/gmp.info
  169.     cd $(srcdir); for f in gmp.info*; \
  170.     do $(INSTALL_DATA) $$f $(infodir)/$$f; done
  171.     -chmod a-x $(infodir)/gmp.info*
  172.     # Attempt to edit the info directory node
  173.     if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
  174.       install-info --dir-file=$(infodir)/dir $(infodir)/gmp.info; \
  175.       else true; fi
  176.  
  177. installdirs: $(srcdir)/mkinstalldirs
  178.     $(srcdir)/mkinstalldirs $(includedir) $(libdir) $(infodir)
  179.  
  180. uninstall:
  181.     rm -f $(libdir)/libgmp.a
  182.     rm -f $(includedir)/gmp.h
  183.     rm -f $(libdir)/libmp.a
  184.     rm -f $(includedir)/mp.h
  185.     rm -f $(infodir)/gmp.info*
  186.  
  187. clean mostlyclean:
  188.     rm -f *.o libgmp.a libmp.a gmp.dvi gmp.ps tmp.* tmp-*
  189.     rm -f gmp.?? gmp.??s gmp.log gmp.toc gmp.*aux gmp*.html
  190.     -cd mpn; $(MAKE) $@
  191.     -cd mpz; $(MAKE) $@
  192.     -cd mpf; $(MAKE) $@
  193.     -cd mpq; $(MAKE) $@
  194.     -cd mpbsd; $(MAKE) $@
  195. distclean: clean
  196.     -cd mpn; $(MAKE) $@
  197.     -cd mpz; $(MAKE) $@
  198.     -cd mpf; $(MAKE) $@
  199.     -cd mpq; $(MAKE) $@
  200.     -cd mpbsd; $(MAKE) $@
  201. maintainer-clean: distclean
  202.     rm -f $(srcdir)/gmp.info*
  203.  
  204. TAGS: force
  205.     cd $(srcdir); etags *.[ch] mp*/*.c mpn/generic/*.c >TAGS
  206.  
  207. dist:
  208.     @echo "sorry, not supported target"
  209.     @exit 1
  210.  
  211. H = $(srcdir)/gmp.h $(srcdir)/gmp-impl.h mpn/gmp-mparam.h
  212.  
  213. extract-double.o: $(srcdir)/extract-double.c $(H)
  214. insert-double.o: $(srcdir)/insert-double.c $(H)
  215. memory.o: $(srcdir)/memory.c $(H)
  216. mp_bpl.o: $(srcdir)/mp_bpl.c
  217. mp_clz_tab.o: $(srcdir)/mp_clz_tab.c
  218. mp_set_fns.o: $(srcdir)/mp_set_fns.c $(H)
  219. stack-alloc.o: $(srcdir)/stack-alloc.c $(srcdir)/stack-alloc.h
  220. version.o: $(srcdir)/version.c
  221.  
  222. force:
  223. .PNONY: check install install-bsdmp install-info-files install-strip uninstall
  224. .PHONY: doc clean distclean maintainer-clean force info dvi
  225.